package com.example.core.entity;

import lombok.Data;


/**
 * redis中存储用户信息
 */
@Data
public class LoginUser {
    private Long id;

    // 身份：1.普通用户 2.管理员
    private Integer identity;

    private String nickname;

    // 头像
    private String headImage = "";

    public LoginUser(Long id, Integer identity, String nickname) {
        this(id, identity, nickname, null);
    }

    public LoginUser(Long id, Integer identity, String nickname, String headImage) {
        this.id = id;
        this.identity = identity;
        this.nickname = nickname;
        this.headImage = headImage;
    }
}
